package com.zhuojy.equity.mall.admin.common.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuojy.equity.mall.admin.common.annotation.ExcelExport;
import com.zhuojy.equity.mall.admin.common.annotation.ExcelImport;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 审批表导出实体类
 *  Tuser THoliday TAuditCenter
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AuditCenterExportEntity implements Serializable {
    private static final long serialVersionUID = 8705254144198840888L;
    @ExcelExport(value = "审批ID",sort = 1)
    private Long id;
    @ExcelExport(value = "请假人",sort = 2)
    private String nickName;
    @ExcelExport(value = "请假类型",sort = 3)
    private String holidayType;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelExport(value = "完成时间",sort = 4)
    private Date endTime;
    @ExcelExport(value = "请假时长",sort = 5)
    private String duration;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelExport(value = "发起时间",sort = 6)
    private Date startTime;

   @TableField(exist = false)
    private String faTime;

    @TableField(exist = false)
    private String qiTime;

}
